<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.sky.common.file.FileUtils"/>
<%@taglib prefix="p" uri="/fisher/tld/Pagination.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>Pagination预览</title>
		<%@include file="/share/header.jsp"%>		
		<p:header   theme="${(param.theme==null||param.theme=='')?'digg':param.theme}"/>
	</head>
	<body onload="document.getElementById('theme').value='${(param.theme==null||param.theme=='')?'digg':param.theme}';">
		主题风格：<select id="theme" onchange="document.location.replace('pagination.jsp?theme='+this.value)">
					<option value="digg">digg</option>
					<option value="yahoo">yahoo</option>
					<option value="yahoo2">yahoo2</option>
					<option value="meneame">meneame</option>
					<option value="flickr">flickr</option>
					<option value="sabrosus">sabrosus</option>
					<option value="scott">scott</option>
					<option value="quotes">quotes</option>
					<option value="black">black</option>
					<option value="black2">black2</option>
					<option value="black-red">black-red</option>
					<option value="grayr">grayr</option>
					<option value="yellow">yellow</option>
					<option value="jogger">jogger</option>
					<option value="starcraft2">starcraft2</option>
					<option value="tres">tres</option>
					<option value="megas512">megas512</option>
					<option value="technorati">technorati</option>
					<option value="youtube">youtube</option>
					<option value="msdn">msdn</option>
					<option value="badoo">badoo</option>
					<option value="manu">manu</option>
					<option value="green-black">green-black</option>
					<option value="viciao">viciao</option>
				</select>	
<%--		查询表格--%>
		<div  id="Pagination-Filter" width="100%"></div>
		<table align="center">
			<tr  align="center">
				<td colspan="100">
					<input type="button" value="查询(S)" accessKey="s" onclick="onDoPaginationSearch()"/>
					<input type="button" value="清空(D)" accessKey="d" onclick="fisherClearCondition()"/>
				</td>
			</tr>
		</table>			
		<!-- Templates -->
		<textarea id="Pagination-FilterTemplate" rows="0" cols="0" style="display:none">
<%--		  过滤条件模板：采用jTemplates--%>
		  <!--
		    {#template MAIN}
		    <table width="100%">
		       <tr>
				<td>姓名:<input type="text" id="{$T.name.id}" name="{$T.name.name}"><input type="hidden" name="{$T.name.type}" value="31"></td>
				<td>年龄:<input type="text" id="{$T.age.id}" name="{$T.age.name}"></td>
				<td>性别:
			        {#foreach $T.sex.options as Result}
			        	<input type="radio" name="{$T.sex.name}"  value="{$T.Result.value}">{$T.Result.name}
			        {#/for}				
				</td>
				<td>状态:
					<select id="{$T.state.id}" name="{$T.state.name}">
			        {#foreach $T.state.options as Result}
			        	<option  value="{$T.Result.value}">{$T.Result.name}</option>
			        {#/for}	
			        </select>			
				</td>				
			   </tr>
			</table>
		    {#/template MAIN}
		  -->
		</textarea>		
<%--		表格--%>
		<table width="100%" id="mytab" class="t1">
<%--		  标题--%>
		  <thead>
		  	<th >序号</th>
		    <th >年龄</th>
		    <th >姓名</th>
		    <th >出生日期</th>
		    <th >性别</th>
		  </thead>
<%--		  内容--%>
		  <tbody id="Pagination-Content">
		  </tbody>
		</table>
<%--		分页		--%>
		<p:page name="/demo/demofather.fisher.xml" contentId="Pagination-Content" filterId="Pagination-Filter" filterTemplateId="Pagination-FilterTemplate"  cssStyle="${(param.theme==null||param.theme=='')?'digg':param.theme}">
<%--		  行模板：采用jTemplates--%>
		  <!--
		    {#template MAIN}
		        {#foreach $T.rows as Result}
		          <tr>
		            <td>{$T.Result.cell.POSITION}</td>
		            <td>{$T.Result.cell.AGE}</td>
		            <td>
		            	{$T.Result.cell.NAME}
		            </td>
		            <td>{$T.Result.cell.BIRTHDAY}</td>
		            <td>{$T.Result.cell.SEX}</td>
		           </tr>
		        {#/for}
		    {#/template MAIN}
		  -->		
		</p:page>
	</body>
</html>
